#
# Be sure to run `pod lib lint DDCameraToolKit.podspec' to ensure this is a
# valid spec before submitting.
#
# Any lines starting with a # are optional, but their use is encouraged
# To learn more about a Podspec see https://guides.cocoapods.org/syntax/podspec.html
#

Pod::Spec.new do |s|
  s.name             = 'DDCameraToolKit'
  s.version          = '1.1.2'
  s.summary          = '视频录制、裁剪'
  s.homepage         = 'https://gitee.com/ddhans/DDCameraToolKit'
  s.license          = { :type => 'MIT', :file => 'LICENSE' }
  s.author           = { '772729579@qq.com' => '772729579@qq.com' }
  s.source           = { :git => 'https://gitee.com/ddhans/DDCameraToolKit.git', :tag => s.version.to_s }
  s.ios.deployment_target = '8.0'
  s.user_target_xcconfig = { 'CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES' => 'YES' }
  
  s.subspec 'DDCameraView' do |sub|
      sub.source_files = 'DDCameraToolKit/DDCameraView/*.{h,m}', 'DDCameraToolKit/DDCameraView/**/*.{h,m}'
      sub.dependency 'Masonry'
      
      sub.resource_bundles = {
          'DDCameraView' => ['DDCameraToolKit/DDCameraView/DDCameraView.bundle/*.png']
      }
  end

  s.subspec 'DDCameraScanView' do |sub|
      sub.source_files = 'DDCameraToolKit/DDCameraScanView/*.{h,m}', 'DDCameraToolKit/DDCameraScanView/**/*.{h,m}'
      sub.dependency 'Masonry'

      sub.resource_bundles = {
          'DDCameraScanView' => ['DDCameraToolKit/DDCameraScanView/DDCameraScanView.bundle/*.png']
      }
  end

  s.subspec 'DDVideoRecord' do |sub|
      sub.source_files = 'DDCameraToolKit/DDVideoRecord/*.{h,m,mm}', 'DDCameraToolKit/DDVideoRecord/**/*.{h,m,mm}'
      sub.dependency 'GPUImage'
      sub.dependency 'Masonry'
      sub.dependency 'HSVendorManager/MBProgressHUD+HS'

      sub.resource_bundles = {
          'DDVideoRecord' => ['DDCameraToolKit/DDVideoRecord/DDVideoRecord.bundle/*.png']
      }
  end

  s.subspec 'DDVideoEditor' do |sub|
      sub.source_files = 'DDCameraToolKit/DDVideoEditor/*.{h,m}', 'DDCameraToolKit/DDVideoEditor/**/*.{h,m}'
      sub.dependency 'HSVendorManager/MBProgressHUD+HS'

      sub.resource_bundles = {
          'DDVideoEditor' => ['DDCameraToolKit/DDVideoEditor/DDVideoEditor.bundle/*.png']
      }
  end
end
